package com.atguigu.gmall.seckill.mapper;

import com.atguigu.gmall.model.activity.SeckillGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Map;

/**
 * @author jzq
 * @create 2021-07-16 19:19
 */
public interface SeckillGoodsMapper extends BaseMapper<SeckillGoods> {
      @Update("update seckill_goods set stock_count = stock_count + #{num} where id = #{skuId}")
    void updateSeckillGoodsStock(@Param("skuId") String skuId, @Param("num") Integer num);
}
